#include "can1.h"
#include "includes.h"
#include "task.h"
#include "delay.h"
#include "uart1.h"
#include "usart2.h"
#include "uart2.h"
#include "uart3.h"
#include "lib_math.h"
#include "pwm.h"
#include "imu.h"
#include "gpio.h"
#include "Judge_System.h"

extern int16_t velo201;
extern u8 NewData_flag;
extern u8 shoot_flag;
extern u8 color_flag;
extern u8 armour_ID;
extern float start_pos1;
extern int16_t output_202;
extern int16_t output_203;
extern int flag1;
extern int flag2;
int16_t output3_201 = 0;

void Time_task(void *p_arg)
{
	OS_ERR err;
	p_arg = p_arg;

	while (1)
	{
		//if (color_flag == 1)
		TX2_Transmit_Start();

		OSTimeDly(10000, OS_OPT_TIME_PERIODIC, &err); //200ms
	}
}
